import { request } from '@/sheep/request';

const route = {
  path: 'tag',
  name: 'seller.admin.tag',
  component: () => import('./index.vue'),
  meta: {
    title: '商品服务',
  },
};

const api = {
  list: (params) =>
    request({
      url: '/seller/admin/tag/crud',
      method: 'GET',
      params,
    }),
  status: (data) =>
    request({
      url: '/seller/admin/tag/crud',
      method: 'POST',
      data,
    }),
 
  add: (data) =>
    request({
      url: '/seller/admin/tag/crud',
      method: 'POST',
      data,
    }),
  details: (id) =>
    request({
      url: `/seller/admin/tag/crud/${id}`,
      method: 'GET',
    }),
  edit: (id, data) =>
    request({
      url: `/seller/admin/tag/crud/${id}`,
      method: 'PUT',
      data,
    }),
  
 
  delete: (id) =>
    request({
      url: `/seller/admin/tag/crud/${id}`,
      method: 'DELETE',
    }),
};

export { route, api };